// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-30

package detail

import (
	"gitee.com/go-wares/framework-iris/framework/src/logics"
	"github.com/kataras/iris/v12"
	"server/app/http/logics/detail/goods"
	goodsbuy "server/app/http/logics/detail/goods/buy"
	goodspre "server/app/http/logics/detail/goods/pre"
	"server/app/http/logics/detail/session"
	sessionbuy "server/app/http/logics/detail/session/buy"
	sessionpre "server/app/http/logics/detail/session/pre"
	"server/app/http/logics/detail/ticket"
)

// Controller
// 数据详情.
//
// @RoutePrefix("/detail")
// @Middleware("authorizer")
type Controller struct{}

// GetGoods
// 商品详情.
func (o *Controller) GetGoods(i iris.Context) {
	logics.Do(i, goods.New)
}

// GetTicket
// 渔票详情.
func (o *Controller) GetTicket(i iris.Context) {
	logics.Do(i, ticket.New)
}

// GetSession
// 场次详情.
func (o *Controller) GetSession(i iris.Context) {
	logics.Do(i, session.New)
}

// PostGoodsPre
// 商品试算.
func (o *Controller) PostGoodsPre(i iris.Context) {
	logics.Do(i, goodspre.New)
}

// PostGoodsBuy
// 在线购物.
func (o *Controller) PostGoodsBuy(i iris.Context) {
	logics.Do(i, goodsbuy.New)
}

// PostSessionPre
// 场次试算.
func (o *Controller) PostSessionPre(i iris.Context) {
	logics.Do(i, sessionpre.New)
}

// PostSessionBuy
// 在线购票.
func (o *Controller) PostSessionBuy(i iris.Context) {
	logics.Do(i, sessionbuy.New)
}
